package com.xiaomaoaixue.system.domain.dto;

import com.xiaomaoaixue.common.core.annotation.Excel;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

/***
 * @Author 徐庶
 * @Slogan 致敬大师，致敬未来的你
 */
public class UserRoleDeptDto {
    /** 角色组 */
    private Long[] roleIds;
    /** 部门ID */
    private Long deptId;

    @NotEmpty(message = "未选择角色")
    public Long[] getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(Long[] roleIds) {
        this.roleIds = roleIds;
    }

    @Min(0)
    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }
}
